// Place your application-specific JavaScript functions and classes here
// This file is automatically included by javascript_include_tag :defaults


function switch_tab(dat)
{
  var cssObj = { color: "#ccc" }

  $(".tab").css(cssObj);

  var cssHideObj = { display: "none" }

  $(".tab_content").css(cssHideObj);

  var cssActiveTab = { color: "#ff7700" }
  var cssActiveContent = { display: "inline" }
  var datTab =  "#" + dat + "_tab";
  var datContent = "#" + dat + "_tab_content";

  $(datTab).css(cssActiveTab);
  $(datContent).css(cssActiveContent);
}